package com.pzh.guli.service.edu.feign;

import com.pzh.guli.service.base.dto.CourseDto;
import com.pzh.guli.service.base.result.Result;
import com.pzh.guli.service.edu.feign.fallback.EduCourseServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@Service
@FeignClient(value = "server-edu",fallback = EduCourseServiceFallback.class)
public interface EduCourseService {
    //订单查询课程模块
    @GetMapping("/api/edu/course/inner/get-course-dto/{courseId}")
    CourseDto getCourseDto(@PathVariable(value = "courseId") String courseId);
}
